package com.activiti.dao.model;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name="activiti_sub_taskinfo", schema="erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public class Activiti_SubTaskInfo implements java.io.Serializable {

    //serialVersionUID
    private static final long serialVersionUID = 1L;

    //Constructors
    public Activiti_SubTaskInfo() {
    }


    //Fields

    //主键
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "id", unique = true, nullable = false, length = 11)
    private Integer id;

    public Integer getdId() {
        return this.id;
    }
    public void setdId(Integer id) {
        this.id = id;
    }

    //流程节点ID
    @Column(name = "task_id", unique = false, nullable = false, length = 11)
    private Integer task_id;

    public Integer getTask_id() {
        return this.task_id;
    }
    public void setTask_id(Integer taskId) {
        this.task_id = taskId;
    }


    //流程节点ID
    @Column(name = "task_sub_id", unique = false, nullable = false, length = 11)
    private Integer task_sub_id;

    public Integer getTask_sub_id() {
        return this.task_sub_id;
    }
    public void setTask_sub_id(Integer task_sub_id) {
        this.task_sub_id = task_sub_id;
    }

    //流程任务名称
    @Column(name = "task_sub_name", unique = false, nullable = false, length = 200)
    private String task_sub_name;

    public String getTask_sub_name() {
        return this.task_sub_name;
    }
    public void setTask_sub_name(String task_sub_name) {
        this.task_sub_name = task_sub_name;
    }

    //审批意见
    @Column(name = "proc_contents", unique = false, nullable = false, length = 800)
    private String proc_contents;

    public String getProc_contents() {
        return this.proc_contents;
    }
    public void setProc_contents(String proc_contents) {
        this.proc_contents = proc_contents;
    }

    //审批状态  0-驳回 1-同意
    @Column(name = "status", unique = false, nullable = true, length = 1)
    private String status;

    public String getStatus() {
        return this.status;
    }
    public void setStatus(String status) {
        this.status = status;
    }




    //创建人
    @Column(name = "staff_code", unique = false, nullable = false, length = 45)
    private String staff_code;

    public String getStaff_code() {
        return this.staff_code;
    }
    public void setStaff_code(String status) {
        this.staff_code = status;
    }

    //所属公司编码
    @Column(name = "company_code", unique = false, nullable = false, length = 45)
    private String company_code;

    public String getCompany_code() {
        return this.company_code;
    }
    public void setCompany_code(String company_code) {
        this.company_code = company_code;
    }

    //所属部门
    @Column(name = "department_code", unique = false, nullable = false, length = 45)
    private String department_code;

    public String getDepartment_code() {
        return this.department_code;
    }
    public void setDepartment_code(String department_code) {
        this.department_code = department_code;
    }

    //创建时间
    @Column(name = "create_time", unique = false, nullable = true)
    private Date create_time;

    public Date getCreate_time() {
        return this.create_time;
    }
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    //审批时间
    @Column(name = "proc_time", unique = false, nullable = false)
    private String proc_time;

    public String getProc_time() {
        return this.staff_code;
    }
    public void setProc_time(String proc_time) {
        this.proc_time = proc_time;
    }

    //审批子节点排序
    @Column(name = "proc_order", unique = false, nullable = true, length = 1)
    private String proc_order;

    public String getProc_order() {
        return this.proc_order;
    }
    public void setProc_order(String proc_order) {
        this.proc_order = proc_order;
    }

}